﻿import mx.rpc.http.HTTPService;
import mx.rpc.events.ResultEvent;

import mx.managers.PopUpManager;
import mx.collections. *;
import mx.controls. *;
import com.esri.ags.Map;
import com.esri.ags.geometry.Extent;
import com.uprr.app.tnm.model.Model;
import com.uprr.app.tnm.events.AppEvent;

import com.adobe.serialization.json.JSON

private function handleCreationComplete () : void 
{
 
	dist.text=Model.getInstance ().distance;
	PopUpManager.centerPopUp (this);
	
}

private function removeGraphic():void {
		var appEvent:AppEvent=new AppEvent(AppEvent.REMOVE_GRAPHIC);
		appEvent.data = Model.getInstance().graphicToRemove;
		appEvent.dispatch();
}


 
